(function (){
	var mCharts = echarts.init(document.querySelector("#doubleline"))
	var option = {
		title:{text:'双折线图',top:'3%',left:'center'},
		legend: {},
		tooltip: {
			trigger: "axis",
			axisPointer: {
				  type: "shadow"
				},
			position: function (pos, params, el, elRect, size) {
				var obj = {top: 10};
				obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 30;
				return obj;
			},
			extraCssText: 'width: 170px'
		},
		dataset:{
			source:thedata
		},
		xAxis:{
			type:'category'
		},
		yAxis:{
			
		},
		series:[
			{
				type:'line'
								
			},
			{
				type:'line'
			}
		]
	};
	mCharts.setOption(option)
})();